<?php

namespace app\admin\model;

use think\Model;


class Withdrawal extends Model
{
    // 表名
    protected $name = 'withdrawal';

    public function getStatusList()
    {
        return ['0' => '未审核', '1' =>'审核通过', '2' =>'审核不通过'];
    }
    public function category()
    {
        return $this->belongsTo('Category', 'category_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
